package cn.gson.fengboot.model.mapper;

import cn.gson.fengboot.model.pojos.Zreturnedmoneylog;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.persistence.criteria.CriteriaBuilder;
import java.util.List;

@Repository
public interface ZreturnedmoneylogMapper {
    List<Zreturnedmoneylog> hkjllist(@Param("search") String search, @Param("search2") String search2);
    List<Zreturnedmoneylog> hkjllist2(@Param("search") String search, @Param("search2") String search2);
    List<Zreturnedmoneylog> jhjl(@Param("hkid") Integer hkid);
    Integer sfjf(@Param("id") Integer hkid);
    Integer sfhk(@Param("id") Integer hkid);
    Integer sftk(@Param("id") Integer hkid);
    Integer hk(@Param("id") Integer hkid);
    Integer jf(@Param("id") Integer hkid);

    //根据订单id查询订单的回款记录的总金额
    Integer selectRemainder(@Param("search") Integer search);

   //根据订单id查询订单的已回款金额
   Integer selectddje(@Param("search") Integer search);

    //<!--谭方圆=>客户合并的回款记录查询-->
    public List<Zreturnedmoneylog> tfyhueikuanjl(@Param("id1") Integer id1, @Param("id2") Integer id2);
}
